<!-- mate start -->
<?php $this->load->view('assists/mate.php') ?>
<!-- mate end -->
<link rel="stylesheet" href="<?=base_url('static/index/css/index.css')?>">
<title>首页</title>
<!-- header strat -->
<?php $this->load->view('assists/header.php') ?>
<!-- header end -->
    <div id="top-alert" class="fixed alert-success" style="display:none;">
    	<button class="close fixed" >×</button>
    	<p class="alert-content">这是内容</p>
    </div>
    <div id="banner_tabs" class="flexslider">
    	<ul>
        	<li><a href="#"><img src="<?=base_url('static/index/images/20151103153726672.jpg')?>"></a></li>
            <li><a href="#"><img src="<?=base_url('static/index/images/20151104093113101.jpg')?>"></a></li>
            <li><a href="#"><img src="<?=base_url('static/index/images/20151104093113101.jpg')?>"></a></li>
        </ul>
        <ul class="flex-direction-nav">
            <li><a class="flex-prev" href="javascript:;">Previous</a></li>
            <li><a class="flex-next" href="javascript:;">Next</a></li>
        </ul>
        <ol id="bannerCtrl" class="flex-control-nav flex-control-paging">
            <li><a>1</a></li>
            <li><a>2</a></li>
            <li><a>3</a></li>
        </ol>
    </div>
    
    <div id="content-wrap">
    	<?php foreach ($newProject_list as $row): ?>
    	<div class="recommend-box clearfix">
        	<div class="recommend-box-img"><a href="<?=site_url('Project_participater/index')."/".$row['pid']?>"><img src="<?=base_url($row['logo'])?>" /></a></div>
            <div class="recommend-box-con">
            	<h3><?=$row['title']?></h3>
                <div class="recommend-box-con-con clearfix">
                	<div class="recommend-box-con-con-left">
                    	<p><?=date("Y-m-d",$row['starttime'])?></p>
                        <h2>开始时间</h2>
                    </div>
                    <div class="recommend-box-con-con-right">
                    	<a href="<?=site_url('Project_participater/join_project/'.$row['pid'])?>" class="recommend-box-con-con-right_btn ajax-get">报名参加</a>
                    	<a href="<?=site_url('Project_participater/index/'.$row['pid'])?>" class="recommend-box-con-con-right_btn">参加情况</a>
                    </div>
                </div>
            </div>
        </div>
        <?php endforeach; ?>
    </div>
    <div id="page">
    	<div class="page_content clearfix">
        	共 <?=$this->paging->page_count?> 条记录
			<div class="page_content_left">
                <?php $this->paging->create();?>
            </div>
        </div>
   	</div>
   	<!-- footer start -->
   	<?php $this->load->view('assists/footer.php') ?>
   	<!-- footer end -->
    <script type="text/javascript" src="<?=base_url('static/index/js/slider.js')?>"></script>
    <script type="text/javascript" src="<?=base_url('static/index/js/ajax.js')?>"></script>
    <script type="text/javascript">
    $(function() {
        var bannerSlider = new Slider($('#banner_tabs'), {
            time: 5000,
            delay: 400,
            event: 'hover',
            auto: true,
            mode: 'fade',
            controller: $('#bannerCtrl'),
            activeControllerCls: 'active'
        });
        $('#banner_tabs .flex-prev').click(function() {
            bannerSlider.prev()
        });
        $('#banner_tabs .flex-next').click(function() {
            bannerSlider.next()
        });
    })
    </script>
</body>
</html>